package comp6231.project.replica.thomas;

import comp6231.project.common.Constants;
import comp6231.project.common.ReplicaState;

public class testThomas {
	public static void main(String[] args){
		ReplicaStoreImpl replica1 = new ReplicaStoreImpl(Constants.REPLICA_ID_M3);
		ReplicaStoreImpl replica2 = new ReplicaStoreImpl(Constants.REPLICA_ID_T3);
		ReplicaStoreImpl replica3 = new ReplicaStoreImpl(Constants.REPLICA_ID_V3);
	
		replica1.buyOp("g3333", "2222", 100);
		replica1.buyOp("g4444", "2222", 100);
		replica1.buyOp("g5555", "2222", 100);
		
		int buy = replica1.buyOp("g2222", "2222", 100);
		int re = replica1.returnOp("g2222", "2222", 50);
		int exchange = replica1.exchangeOp("g2222", "2222", 30, "3333", 100);
		int check = replica1.checkStockOp("2222");
//		System.out.println(buy);
//		System.out.println(re);
//		System.out.println(check);
//		System.out.println(exchange);
		ReplicaState rs = replica1.getReplicaState();
//		ss.getCustomerBoughtItems("g2222");
		System.out.println("test setReplicaState");
		replica1.setReplicaState(rs);
		ReplicaState rsNew = replica1.getReplicaState();
		System.out.println("test setReplicaState");
		
	}
}
